#include<iostream>
#include<cstdio>
#include<cstring> 
using namespace std; 
int main( ){
//char str[20]; 
	string str;
	cin>>str; //hello
	cout<<str[2]<<endl; //L
	cout<< str.length() <<endl; //s 
	cout<< str.size() <<endl; //5 
	string str1="aaa";
	cout<< str.append(str1) <<endl;	//	
	cout<< (str>str1) <<endl; //1
	cout<< str.substr(2,2) <<endl; //l 
	string str2 = str.substr(2,str1);
	cout << str << endl;
	cout<< str <<endl; //
	cout<< str.insert(2,str1) <<endl; 
	cout<< str <<endl; //heaaallo
	cout<< str.find(str1) <<endl; // I cout<< str.compare(str1);
}

